package com.ysw.springbootproject.utils;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @author 月上微
 * @date 2025/1/6
 * @since 14:21
 */
public class DateUtil {
    public static String getDateString(Date date) {
        SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        return simpleDateFormat.format(date);
    }
}
